//import angular core
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
//import mycomponents
import { UserDetailComponent } from './user-detail/user-detail.component'
import { ProfileComponent } from 'app/profile/profile.component';


const routes: Routes = [
    {
        path: '',
        component : ProfileComponent,
        children:[
            {
                path: '',
                component: UserDetailComponent
            }
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})

export class ProfileRoutingModule {}